package gof_001_创建型_Create.gof_003_抽象工厂_AbstractFactory.gof_002_AbstractFactory;

public class ComputerHighFactory implements ComputerFactory{
    @Override
    public CPU setCPU() {
        return new CPU_i7();
    }

    @Override
    public Screen setScreen() {
        return new Screen_100();
    }

    @Override
    public HardDisk setHardDisk() {
        return new HardDisk_4T();
    }

    @Override
    public void use() {
        setCPU().type();
        setCPU().hertz();

        setScreen().type();

        setHardDisk().capacity();
    }
}
